namespace SimpleWebServices.Web.UI.Html.Validation
{
    using System.Collections.Generic;
    using SimpleWebServices.Data;
    using SimpleWebServices.Web.UI.Html.Elements;

    public interface IValidate
    {
        IInnerElements Display { get; set; }

        IList<IError> Errors { get; }

        void Configure(IElement element, DataCollection data);

        void DisplayErrors();

        bool Validate(IElement element);
    }
}